package com.zysd.collection.scheduler;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 服务启动类
 *
 * @author liuht
 * @date 2017/10/11 13:45
 */
@SpringBootApplication(scanBasePackages = {"com.zysd", "com.lensyn"})
@EnableScheduling
@MapperScan("com.zysd.collection.scheduler.dao")
@ServletComponentScan("cn.uncode.schedule")
//@EnableCircuitBreaker
@EnableDiscoveryClient
public class SchedulerApplication {
    public static void main(String[] args) {
        SpringApplication.run(SchedulerApplication.class, args);
    }
}
